import { EnumStorageKey } from '@/enum';
/**设置缓存主题颜色 */
export function setThemeColor(color:string){
    window.localStorage.setItem(EnumStorageKey['theme-color'],color)
}
/**获取缓存主题颜色 */
export function getThemeColor(){
    return window.localStorage.getItem(EnumStorageKey['theme-color'])
}
/**设置暗黑模式CSS */
export function addDarkClass(){
    document.body.classList.add('dark')
}
/**移除暗黑模式CSS */
export function removeDarkClass(){
    document.body.classList.remove('dark')
}